package com.zhny.sensor.config;

import com.zhny.sensor.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

/**
 * @Auther: zhy
 * @Date: 2019/11/9
 * @Description: 系统配置
 */
@Configuration
@ComponentScan(basePackages = {"com.zhny.sensor"})
@EnableJpaRepositories(basePackages = {"com.zhny.sensor.dao"})
public class AppConfig {

    @Bean
    public IdWorker getIdWorker() {
        return new IdWorker();
    }

}